<?php
/**
 * The template for displaying Tag pages
 *
 * Used to display archive-type pages for posts in a tag.
 *
 * @link http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */

get_header(); 

$link = get_permalink();
$title = get_the_title(); //the_title
global $post, $jampcsz;

var_dump($link);
// 
?>

			
<article id="post-<?php the_ID();
?>" class="hentry goods-single">
	<header class="entry-header">
		<?php  echo "<a href='{$link}' class='vid-play'>$title</a>";?>
	</header>
	
	<div id="divbox_detail" class="divbox_detail">
		<?php echo "<a href='{$link}' class='vid-play'>";?>
			<div id="divimage" class="divimage">
			<?php
			the_post_thumbnail("thumbnail","class=image-crop"); ?>
			</div>
		</a>
		<div id="divtitle" class="divtitle">
			<?php echo "<a href='{$link}' class='vid-play'>$title</a>";?>
		</div>
		<div id="divmoney" class="divmoney">
			<?php 
				echo get_price($post);
			 ?>
		</div>
	
		<div id="divcontent" class="divcontent">
			<?php 
				the_content();
				//echo $post->post_content;
				//var_dump($post->post_content); // get_the_content() //the_excerpt
				
				edit_post_link(__('{Edit }', 'woothemes' ), '<span class="small">', '</span>' );
				
				
			?>
		</div>
		<div class="div_btn_order">
			<a class="link_order" href="#" onclick="return add_to_order_cart(form_order, this)">Đặt Hàng
			<?php //jQuery('.form_order').submit() ?>
			</a>
		</div>

		<form id="form_order" name="form_order" class="form_order" action="<?php echo get_permalink(get_page_id("order-cart")) ?>" method="post">
			<input type="hidden" name="add_to_cart" value="1"></input>
			<input type="hidden" name="goods_id" value="<?php echo the_ID()?>"></input>
			
		</form>
		
		

	</div>
</article>
	

	<div class="forum-social pull-left"> <!--  class:pull-left => make display:inline -->
		<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
		<a class="addthis_button_preferred_1"></a>
		<a class="addthis_button_preferred_2"></a>
		<a class="addthis_button_preferred_3"></a>
		<a class="addthis_button_preferred_4"></a>
		</div>
		<!-- AddThis Button END -->
		<div class="clearfix"></div>
	</div>	
	
    <div class="view-others-product">
    	<p class="moreOf fsm l-cell vMid">	 
        </p>
        <div class="addthis_toolbox addthis_default_style" >
        <a class="addthis_button_facebook_like";="" style="width:80px"; fb:like:addthis:url="<?php echo get_permalink();?>"></a>
		<iframe src="https://www.facebook.com/plugins/like.php?locale=vi_VN&href=<?php echo get_permalink();?>&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=35&amp;appId=657033221004925" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:35px;" allowTransparency="true"></iframe>

		
        <a class="addthis_button_tweet"></a>
        <a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a>
        <a class="addthis_counter addthis_pill_style"></a>
        </div>
    </div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5212d80b3b0cf811"></script>



	

					
<?php
//get_sidebar( 'content' );
// get_sidebar();
// get_footer();
